package itdfq.ydd.Creational_Pattern.SingletonPattern;



/**
 * @Author GocChin
 * @Date 2021/3/22 20:25
 * @Blog: itdfq.com
 * @QQ: 909256107
 */
public class Client {
    public static void main(String[] args) {
        System.out.println("18031210136  杨丹丹");
        VIPID n1,n2;
        n1=VIPID.getInstance();
        n2=VIPID.getInstance();
        System.out.println("会员账号是否一致："+(n1==n2));
        String s1,s2;
        s1=n1.getVIPID();
        s2= n2.getVIPID();
        System.out.println("第一次的会员账号："+s1);
        System.out.println("第二次的会员账号："+s2);
        System.out.println("内容是否相等："+s1.equals(s2));
        System.out.println("是否是相同的对象"+(s1==s2));
    }
}
